// import PageTools from './PageTools'

// export default {
//   install(Vue) {
//     Vue.component('PageTools', PageTools)
//   }
// }
// element导入方法
import PageTools from './PageTools'

import UploadExcel from './UploadExcel'

import UploadImg from './UploadImg'

import ImageHolder from './ImageHolder'

import Lang from './lang'

import ScreenFull from './ScreenFull'
// 将引入所有组件放到数组中,遍历数组进行注册,不用一个一个注册了,所有组件都需要有name属性
const components = [
  PageTools,
  UploadExcel,
  UploadImg,
  ImageHolder,
  Lang,
  ScreenFull
]
export default {
  install(Vue) {
    components.forEach(component => {
      Vue.component(component.name, component)
    })
  }
}
